#include<bits/stdc++.h>
#define XH(i,a,b) for(int i=a;i<b;++i)
#define XXH(i,a,b) for(int i=a-1;i>=b;--i)
#define LL long long
using namespace std;
int tmpINT; string tmpSTRING; char tmpCHAR; double tmpDOUBLE; LL tmpLONGLONG;

void solve(){
    LL n;scanf("%I64d", &n);
    if(n%2 == 1){
        printf("YES\n");
    }else{
        while(n%2 == 0 && n>0)n/=2;
        if(n == 0 || n == 1)printf("NO\n");
        else printf("YES\n");
    }
}

int main(){
    int t;scanf("%d", &t);
    for (int i = 0 ; i < t ; ++i)
    {
        solve();
    }

    return 0;
}
